;;; my-package.el --- A listing of modules to load on startup
;;

;;; Commentary:

;; auto-save
(add-to-list 'load-path "~/.emacs.d/extensions/auto-save/") ; add auto-save to your load-path
(require 'auto-save)
(auto-save-enable)
(setq auto-save-silent t)   ; quietly save
(setq auto-save-delete-trailing-whitespace t)  ; automatically delete spaces at the end of the line when saving
;;; custom predicates if you don't want auto save.
;;; disable auto save mode when current filetype is an gpg file.
(setq auto-save-disable-predicates
      '((lambda ()
      (string-suffix-p
      "gpg"
      (file-name-extension (buffer-name)) t))))

;; blink-search
(add-to-list 'load-path "~/.emacs.d/extensions/blink-search")
(require 'blink-search)

;; sort-tab
; (add-to-list 'load-path "~/.emacs.d/extensions/sort-tab") ; add sort-tab to your load-path
; (require 'sort-tab)
; (sort-tab-mode 1)


;; achive
(use-package achive
  :load-path "~/.emacs.d/extensions/achive"
  :custom
  (achive-auto-refresh t)
  (achive-refresh-seconds 5)
  (achive-stock-list '("sh600597" "sz000949" "sh600350" "sh600703")))
(use-package tablist
    :defer 1)

;; auto-highlight-symbol
(require 'auto-highlight-symbol)
(add-hook 'after-init-hook 'global-auto-highlight-symbol-mode)

;; format all, formatter for almost languages
;; great for programmers
(require 'format-all)
(add-hook 'prog-mode-hook 'format-all-ensure-formatter)

(provide 'my-package)